#include <iostream>

using namespace std;

class Animal
{
public:
	Animal(){};
	void setAge(int params)
	{
		itsAge = params;
		cout << "animal's setAge...\n";
	}
private:
	int itsAge;
};

class Dog:public Animal
{
public:
	Dog(){};
	virtual void setAge(int params)
	{
		cout << "Dog's setAge...\n";
		Animal::setAge(params);
	}
};

int main()
{
	Dog *d = new Dog();
	d->setAge(100);
	return 0;
}